home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 22 / Amiga Format AFCD22 (Jan 1998, Issue 106).iso / -screenplay- / utilities / hd_installers / torvakthewarrior / install-torvakthewarrior < prev    next >
Text File  |  1997-11-05  |  2KB  |  85 lines

  1.  
  2. ;----------------------------
  3.  
  4. ;try to figure out a place where the user usually installs his games
  5. (if (exists "Games:" (noreq) )
  6.     (set @default-dest "Games:")
  7.     (if (exists "SYS:Games" (noreq) )
  8.         (set @default-dest "SYS:Games")
  9.         (if (exists "Work:Games" (noreq) )
  10.             (set @default-dest "Work:Games")
  11.             (if (exists "JEUX:" (noreq) )
  12.                (set @default-dest "JEUX:")
  13.                (set @default-dest "SYS:")
  14.             )
  15.         )
  16.     )
  17. )
  18.  
  19. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site")
  20.  
  21.  
  22. (set default-dest
  23. (askdir
  24.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  25.     (help @askdir-help)
  26.     (default @default-dest)
  27.     (disk)
  28. )
  29. )
  30.  
  31. (set #dest (tackon default-dest @app-name))
  32.  
  33. (set #CI_unit
  34.     (askchoice
  35.         (prompt "From which disk unit do you want\nto install the game")
  36.         (help    @askoptions-help)
  37.         (choices
  38.            "DF0:"
  39.            "DF1:"
  40.            "DF2:"
  41.            "DF3:"
  42.         )
  43.     )
  44. )
  45.  
  46. (set #CI_drive ("DF%ld:" #CI_unit))
  47.  
  48. (makedir #dest
  49.     (help @makedir-help)
  50.     (infos)
  51. )
  52.  
  53. ;----------------------------
  54.  
  55. (copyfiles
  56.     (help @copyfiles-help)
  57.     (source "TorvakHD")
  58.     (dest #dest)
  59.     (infos)
  60. )
  61.  
  62. (copyfiles
  63.     (help @copyfiles-help)
  64.     (source "torvakhd.readme")
  65.     (dest #dest)
  66.     (infos)
  67. )
  68.  
  69. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  70.     (if
  71.         (= 0 (run ("disk2file %ld \"%s/torvak.d1\" 0 159 SKIPROB >con:0/0/450/200//CLOSE/WAIT" #CI_unit #dest)))
  72.         ("")
  73.         (abort "\"disk2file\" program not found !")
  74.     )
  75.  
  76. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  77.     (if
  78.         (= 0 (run ("disk2file %ld \"%s/torvak.d2\" 0 159 SKIPROB >con:0/0/450/200//CLOSE/WAIT" #CI_unit #dest )))
  79.         ("")
  80.         (abort "\"disk2file\" program not found !")
  81.     )
  82.  
  83. (exit)
  84.  
  85.